[mirrors]
http://www.midnight-commander.org/downloads/mc-4.8.1.7.tar.xz

[vars]
filesize=2049316
sha512=48fb6f010c61bac1b0af82713a6951032298e152cd51756a2442fdd1b1a54937545399725b66f6f20905223c0a756507ac6ff10d935209741f59bb518f41240e
desc='midnight commander - terminal file manager (norton commander clone)'

[deps]
ncurses
glib

[build]
patch -p1 < "$K"/mc-CTRL.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS=-D_GNU_SOURCE CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --disable-nls \
  --disable-silent-rules \
  --without-x \
  --without-gpm-mouse \
  --with-screen=ncurses
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
